<?php
require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
require_once($GLOBALS['PAD']."Modules/FTK9D4D0/modconf.mex");
MYTCONN(); 
	if (!isset($_POST['dtr_Corresponsal'])) { $_POST['dtr_Corresponsal'] = 0; }
	if(!isset($_POST['ntr_ID'])) { $_POST['ntr_ID'] = 0; }
	$Qur = "SELECT miso_Cod_elite AS ID, miso_ID AS NAME FROM hd_detalletarifas 
		  		INNER JOIN hd_monedasiso ON miso_ID = dtr_MPago
				WHERE dtr_Corresponsal = {$_POST['dtr_Corresponsal']}
				AND dtr_Pais = {$_POST['dtr_Pais']}
			AND dtr_Tarifa = {$_POST['ntr_ID']}
			 AND dtr_Status = 1"; 
	mn_field('select','ED','dtr_MPago','',$Qur,'','','" style="width:50px" onchange="
		  document.SetRates.action=\''.$MODURL.'Lib/rate_def/elem_proprate.mex\';
		  subform(\'SetRates\',\'TarDetail\');'); ?>
<script charset="utf-8" type="text/javascript">
	if(document.SetRates.dtr_MPago.value!='') {
	document.SetRates.action='Modules/FTK9D4D0/Lib/rate_def/elem_proprate.mex';
	subform("SetRates","TarDetail");
	} else {
	document.getElementById('TarDetail').innerHTML='';
	}</script>